import Vue from 'vue'
import './plugins/axios'
import App from './App.vue'
import router from './router'

Vue.config.productionTip = false

Vue.filter('imgURL', function (value, size) {
  if (!value) return ''
  value = value.toString()
  return value + "?imageView=1&type=webp&thumbnail=" + size + "x0";
})

new Vue({
  router,
  render: h => h(App),
  created: function () {
    localStorage.setItem("fav", "[]")
  }
}).$mount('#app')